import  React from 'react'

export  default  class Admin  extends React.Component {
    componentDidMount() {

      

        // navigator.geolocation.getCurrentPosition(success);
        //   function success(data) {
        //       console.log(data)
        //   }



      console.log(window.navigator)
       window.navigator.geolocation.getCurrentPosition(function(data){
            console.log(data)
        });
        // function success(data) {
        //     console.log(data)
        // }
    }

    render(){
        return(
            <div>我是admin组件</div>
        )
    }
}